

# ARMCC := armclang --target=aarch64-arm-none-eabi -march=armv8.1-a+sve

# HPCCC := aarch64-linux-gcc -march=armv8.3-a+sve
HPCCC := aarch64-linux-gnu-gcc -march=armv8.3-a+sve -v
# HPCCC := aarch64-linux-gcc -march=armv8-a
ARMCC := $(HPCCC)

all: compiler sve 8.1 8.2 8.3

compiler: sys-reg.ao sys-reg.o
sve: sve-test.ao sve-test.o
8.1: arm-v8.1.ao arm-v8.1.o
8.2: arm-v8.2.ao arm-v8.2.o
8.3: arm-v8.3.ao arm-v8.3.o

clean:
	rm *.{o,ao}

%.ao: %.s
	$(ARMCC) -c $^ -o $@

%.o: %.s
	$(HPCCC) -c $^ -o $@

